@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="equipmentInfoForm">

            <input type="hidden" id="id" value="">
            <font color='red' style='font-weight:bold;'>${message}</font>
            <div class="row">
                <div class="col-sm-4 b-r">
                    <#input id="equipmentName" name="设备名称" underline="false"/>
                </div>
                <div class="col-sm-4 b-r">
                    <#select id="communicationMode" name="通信方式" underline="false">
                        @for(dict in constant.getDicts('通信方式')){
                        <option value="${dict.value}">${dict.name}</option>
                        @}
                    </#select>
                </div>
                <div class="col-sm-4 b-r">
                    <#input id="ipAddress" name="IP地址" underline="false"/>
                </div>
                <div class="col-sm-4 b-r">
                    <#input id="communicationPost" name="通信端口"/>
                </div>
                <div class="col-sm-4 b-r">
                    <#input id="communicationPassword" name="通信密码"/>
                </div>
                <div class="col-sm-4 b-r">
                    <#input id="iconType" name="图标类型"/>
                </div>
                <div class="col-sm-4 b-r">
                    <#select id="controllerType" name="门禁控制器类型" underline="false">
                        @for(dict in constant.getDicts('门禁设备类型')){
                        <option value="${dict.value}">${dict.name}</option>
                        @}
                    </#select>
                </div>
                <div class="col-sm-4 b-r">
                    <#select id="areaId" name="区域" underline="false">
                        @for(dict in constant.getDicts('区域')){
                        <option value="${dict.value}">${dict.name}</option>
                        @}
                    </#select>
                </div>
                <div class="col-sm-4 b-r">
                    <#input id="serialNumber" name="序列号" underline="false" readonly="true"/>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="EquipmentInfoInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="EquipmentInfoInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/door/EQUIPMENT/INFO/equipmentInfo_info.js"></script>
@}
